package com.gexiaobao.pigeon.app.model.bean

import android.os.Parcelable
import com.chad.library.adapter.base.entity.MultiItemEntity
import kotlinx.android.parcel.Parcelize

/**
 * @Author      : hxw
 * @Date        : 2023/3/3 14:45
 * @Describe    :
 */
@Parcelize
class MyShopOrderListResponse(

    var total: Int = 0,
    var list: ArrayList<ListBean> = ArrayList(),
    override val itemType: Int

) : Parcelable, MultiItemEntity {

    /**
     * 数据是否为空
     */
    fun isEmpty() = list == null || (list as List<*>).isEmpty()

    @Parcelize
    class ListBean(

        var shopId: Int = 0,
        var shopOrderId: Int = 0,
        var orderId: Int = 0,
        var orderStatus: Int = 0,//0--生成，1-支付中，2-支付成功，3-已发货 4-已签收 5-支付失败，6-退款中，7-退款成功，8-退款失败,9-订单关闭 10-已评价, 11-退货中 12-退货成功 13-退货失败 14-退货审核中 15-审核通过）
        var shopExpressFee: Double = 0.00,
        var oneShopFinalPrice: Double = 0.00,
        var shopName: String = "",
        var expressNo: String = "",
        var list: ArrayList<ListGoods> = arrayListOf(), override val itemType: Int,

        ) : Parcelable, MultiItemEntity {

        /**
         * 数据是否为空
         */
        fun isEmpty() = list == null || (list as List<*>).isEmpty()

        @Parcelize
        class ListGoods(

            var goodName: String = "",
            var specName: String = "",
            var specImg: String = "",
            var salePrice: Double = 0.00,
            var expressFee: Double = 0.00,//运费
            var amount: Int = 0,
            var id: Int = 0,
            var goodId: Int = 0, override val itemType: Int

        ) : Parcelable, MultiItemEntity

    }
}